home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
ASSPOINT.422
< prev
next >
Wrap
Text File
|
1993-02-09
|
4KB
|
144 lines
SM0001.MOD
Squire Malcolm #1 @16216
Thu Feb 04 02:39:03 1993
┌───────────────────────────────────────────────────────────────────────────┐
│ Mod Name : Ass point Enable Mod Author: Squire MalColm 1@6216 WWIVnet│
│ 1@16216 WWIVLink│
│ Difficulty: Easy Date : 03FEB93 │
│ │
│ Version : WWIV 4.22 File Name : SM00001.MOD │
│ │
│ Description: Sets ASS_PTS when user violates standard ASS_PTS things, or │
│ hangs up on system without using either 'O' or '/O', also it │
│ automaticly lowers the SL and DSL 1 point per 10 ASS_PTS and │
│ reduces ASS_PTS by 10. It will display a standard message │
│ file called ASSPOINT.* to a user with 6+ ASS_PTS at logon. │
│ │
└───────────────────────────────────────────────────────────────────────────┘
This is my first mod, it is an easy one, but it runs great. If you want
to simplify the moding just search for 2add_ass0 in each of the files.
DISCLAIMER!!
I am not resposable for anything in relationship to this mod and its
effects on your life in any way.
Legend: /*+*/ = ADD LINE
/*-*/ = REMOVE LINE
==============================================================================
Pre-Step: BACK UP YOUR SOURCE!
==============================================================================
Step 1:
Load SR.C
In the void send_file() find the folowing in send_file(...)
if ((*sent==0) && (ok==0))
if (percent==1.0) {
*sent=1;
/*-*/ add_ass(10,get_stringx(1,65));
/*+*/ add_ass(2,get_stringx(1,65));
} else {
Save SR.C
==============================================================================
Step 2:
Load XFER.C
In the void upload() find
if ((d.mask & mask_PD) && (ok)) {
nl();
prt(5,get_string(769));
if (!yn()) {
nl();
pl(get_string(770));
pl(get_string(771));
pl(get_string(772));
pl(get_string(773));
pl(get_string(774));
nl();
sprintf(s,get_stringx(1,41),u.filename);
/*-*/ add_ass(5,s);
/*+*/ add_ass(1,s);
ok=0;
} else
save XFER.C
==============================================================================
Step 3:
Load COM.C
In void checkhangup() find
if (!ok) {
hangup = hungup = 1;
/*-*/ if (useron && !in_extern)
/*+*/ if (useron && !in_extern) { // add {
sysoplog(get_stringx(1,99));
/*+*/ add_ass(3,get_stringx(1,99));
/*+*/ }
Save COM.C
==============================================================================
Step 4:
Load UTILITY.C
In void add_ass() add this to the end
while (thisuser.ass_pts > 10) {
thisuser.sl -= 1;
thisuser.dsl -= 1;
thisuser.ass_pts -= 10;
}
Save UTILITY.C
==============================================================================
Step 5:
Load LILO.C
In void logon(void) find
if (incom && live_user) {
i=printfile("LOGON");
if ((!i) && (!(thisuser.sysstatus & sysstatus_pause_on_page)))
pausescr();
}
And add
/*+*/ if (thisuser.ass_pts >= 5) // This sets the ass poit level to
/*+*/ printfile("ASSPOINT"); // display this file to the user.
Save LILO.C
==============================================================================
Step 6:
Compile.
That's it...
2Squire MalColm0